<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
		</style>
	</head>
	<body>	
	<h6><kbd>&nbsp;添加新用户&nbsp;</kbd></h6>
		
		<form action="{:U(MODULE_NAME.'/User/createHandle')}" method="post" class="alert alert-info">
			<input type="hidden" value="{$user.id}" name="id">
			<label for="">用户账号（不可重复）</label>
			<input type="text" value="{$user.username}" name="txt_name" class="form-control" placeholder="请输入用户账号" required />
			<label for="">用户昵称</label>
			<input type="text" value="{$user.nickname}"  name="txt_nickname" class="form-control" placeholder="请输入您的昵称" required />
			<label for="">用户头像</label>
			<div class="col-sm-12"style="padding:0px"  >
				<div class="col-sm-6"style="padding:0px" >
						<select name="txt_head" id="headImage"  class="form-control select-inverse-dropdown">
							<option value="__IMG__/system_head (1).gif">内置头像1</option>
							<option value="__Head_IMG__/system_head (2).gif">内置头像2</option>
							<option value="__Head_IMG__/system_head (3).gif">内置头像3</option>
							<option value="__Head_IMG__/system_head (4).gif">内置头像4</option>
							<option value="__Head_IMG__/system_head (5).gif">内置头像5</option>
							<option value="__Head_IMG__/system_head (6).gif">内置头像6</option>
							<option value="__Head_IMG__/system_head (7).gif">内置头像7</option>
							<option value="__Head_IMG__/system_head (8).gif">内置头像8</option>
							<option value="__Head_IMG__/system_head (9).gif">内置头像9</option>
							<option value="__Head_IMG__/system_head (10).gif">内置头像10</option>
							<option value="__Head_IMG__/system_head (11).gif">内置头像11</option>
							<option value="__Head_IMG__/system_head (12).gif">内置头像12</option>
							<option value="__Head_IMG__/system_head (13).gif">内置头像13</option>
						</select>
				</div>
			<div class="thumbnail pull-right" >
				<img src="__Head_IMG__/system_head (1).gif" alt="" id="viewHead" style="width:90px;height:90px"  />
			</div>
			</div>
			<p></p>
			<label for="">用户邮箱</label>
			<input type="text" value="{$user.email}"  name="txt_email" class="form-control" placeholder="邮箱一定包含@符号"  />
			<empty name="user.id">
			<label for="">用户角色</label>
					<select name="txt_role" class="form-control select-inverse-dropdown">
						<foreach name="roles" item="r">
								<option value="{$r.id}">{$r.title}</option>
						</foreach>
						</select>
			</empty>
			<label for="">主页</label>
			<input type="text" value="{$user.url}"  name="txt_url" class="form-control" placeholder="输入您的网站主页"  />
			<label for="">QICQ</label>
			<input type="text" value="{$user.qq}"  name="txt_qq" class="form-control" placeholder="输入您的QQ"  />
			<label for="">密码</label>
			<input type="password" value="{$user.userpassword}"  name="txt_password" class="form-control" placeholder="输入您的登录密码"  />
			<p></p>
			<br/>
			<input type="submit" class="btn btn-success" value="保 存" />
			<a href="{:U(MODULE_NAME.'/User/index')}" class="btn btn-danger ">返 回</a>
			
			
		</form>
		
		<script>
				$('#headImage').change(function()
				{
					$("#viewHead").attr('src',$(this).val());
				})
		</script>
	</body>		

</html>
